package com.example.demo.model.goods.goods.controler;


import com.example.demo.Results.ResultClass;
import com.example.demo.model.goods.goods.service.ShopGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author STAHYW
 * @since 2021-10-16
 */
@RestController
@RequestMapping("/goods/shopGoods")
public class ShopGoodsResource {
    @Autowired
    ShopGoodsService shopGoodsService;

    @PostMapping("/getShopGoods")
    public ResultClass getShopGoods(Integer goodsTypeId) {
        return shopGoodsService.getShopGoods(goodsTypeId);
    }
}

